<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>组件</title>
	<script src="./lib/vue-2.4.0.js"></script>
</head>
<body>
	<div id="app">
        <mycoml></mycoml>
	</div>

      <template id="temp1">
          <div>
             <h1>我真的好爱你,陆洲 等我!</h1>
          </div>
      </template>

	<script>
       // var coml=Vue.extend({
       // 	  template:'<h3>我爱你一万年,陆洲</h3>'
       // })

       // Vue.component('mycoml',coml)

       Vue.component('mycoml',{
       	  template:'#temp1'
       })

       var vm=new Vue({
       	 el:'#app',
       	 data:{},
       	 methods:{}
       });
	</script>
</body>
</html>